package com.kitchen.mapper;

import com.kitchen.beans.entity.Food;
import com.kitchen.beans.entity.Menu;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

public interface MenuMapper extends Mapper<Food>, MySqlMapper<Food> {
    /**
     * 根据食谱名和食材名进行查询
     * @param fName 食谱名与食材名
     * @return
     */
    List<Menu> selectByFNameOrFIngredients(@Param("fName") String fName);


}